import java.util.Arrays;
import java.util.Random;

/**
 * Created by dllo on 18/4/2.
 */
public class Qestion01 {
    public static void main(String[] args) {
        Random random = new Random();
        int[] arr = new int[20];
        arr[0] = 0;
        for (int i = 0; i < arr.length; i++) {
            int num = random.nextInt(10);
            arr[i] = num;
            //arr[i]random.nextInt(10)
            //System.out.print(arr[i] + ",");
        }

        System.out.println(Arrays.toString(arr));

        System.out.println("---------");
        for (int j = 0; j < arr.length; j++) {
            if (arr[j] % 2 == 0) {
                System.out.println("偶数" + arr[j]);
            }
        }



    }
}
